package com.baox.agridata.synchronous.service.shanxi.impl;

import com.baox.agridata.synchronous.dao.shanxi.TCCAAMapper;
import com.baox.agridata.synchronous.entity.quanguo.Jyzdds;
import com.baox.agridata.synchronous.entity.quanguo.Jyzsdwb;
import com.baox.agridata.synchronous.entity.shanxi.TCCAAEntity;
import com.baox.agridata.synchronous.service.shanxi.TCCAAService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TCCAAServiceImpl implements TCCAAService {


    @Autowired
    private TCCAAMapper tccaaMapper;


    @Override
    public TCCAAEntity selectTCCAAInfoByMid(String mid) {
        return tccaaMapper.selectTCCAAInfoByMid(mid);
    }

    @Override
    public TCCAAEntity selectTCCAAInfoByFactoryCode(String factoryCode) {
        return tccaaMapper.selectTCCAAInfoByFactoryCode(factoryCode);
    }

    @Override
    public Integer updateTCCAAStatus(String Status, String lastUpdate, String mid) {
        return tccaaMapper.updateTCCAAStatus(Status, lastUpdate, mid);
    }

    @Override
    public List<Jyzsdwb> getLocalCCAAList(String startTime, String endTime, String factoryCode) {
        return tccaaMapper.getLocalStartingCCAAList(startTime, endTime, factoryCode);
    }

    @Override
    public List<Jyzdds> selectJyzDDsFromTCCAA(String createTime) {
        return tccaaMapper.selectJyzDDsFromTCCAA(createTime);
    }
}
